<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>

	<!-- CSS  -->
	<link href="<c:url value="/resources/form.css" />" rel="stylesheet" type="text/css" />

	<!-- JS Library -->
	<script type="text/javascript"	src="<c:url value="/resources/jquery/1.4/jquery.js" />"></script>
	<script type="text/javascript"	src="<c:url value="/resources/jqueryui/1.8.9/jquery-ui-1.8.9.custom.min.js" />"></script>


</head>
<body>
<div id="forms">

<c:url var="addUrl" value="/group/add"  /> 

<form:form id="form"  cssClass="cleanform" method="post" action="${addUrl }">
	<fieldset>
		<legend>Group Info</legend> 
		<form:label	path="name">角色名</form:label>
		<form:input path="name" /> 
		<form:label path="remark">备注</form:label> 
		<form:textarea path="remark" />
		
		<form:label path="state">状态</form:label> 
		<form:select path="state">
			<form:option value="1">正常</form:option>
			<form:option value="0">锁定</form:option>
		</form:select>
	</fieldset>

		<fieldset class="checkbox">
		<legend>权限信息</legend> 
		
		<c:forEach var="menus" items="${menuList }">
		<label>
			<form:checkbox	path="menus[${menus.id }]" value="${menus.id}" />${menus.name }
		</label> 
		</c:forEach>
		</fieldset>
	<p>
		<button type="submit">Submit</button>
	</p>
</form:form>
</div>
</body>
</html>